//
//  NSString+MULAdditions.h
//  UniLoginSDK
//
//  Created by Song Xiaofeng on 13-12-13.
//  Copyright (c) 2013年 Mafengwo Inc. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSString (MULAdditions)
/**
 *	@see stringByEscapingForURLArgument
 *
 *	@return	escapted string
 */
- (NSString*)mul_urlEncode;

/**
 *	@see stringByUnescapingFromURLArgument
 *
 *	@return	unescapted string
 */
- (NSString*)mul_urlDecode;


#pragma mark - Only Encoding
/**
 *  md5 encoding
 *
 *  @return lowercase encoding string
 */
- (NSString*)mul_md5Encode;

/**
 *  md5 encoding
 *
 *  @return uppercase encoding string
 */
- (NSString*)mul_MD5Encode;

- (NSString*)toBase64String;
+ (NSString *)base64StringFromData: (NSData *)data length: (NSUInteger)length;
@end
